package com.zyh.enumdemo;

enum Sex {
    男, 女, 未知
}

public class EnumDemo1 {
    public static void main(String[] args) {
        Person person1 = new Person("zyh", Sex.男);
        Person person2 = new Person("tom", Sex.女);
        Person person3 = new Person("lisa", Sex.未知);
    }
}

